/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package view.commands;

import com.sun.lwuit.Command;
import com.sun.lwuit.events.ActionEvent;

/**
 *
 * @author Kvest
 */
public class CenterCommand extends Command
{    
    private Command src;
    
    public CenterCommand(Command src)
    {
        super("...");
        this.src = src;
    }
    
    public void actionPerformed(ActionEvent evt)
    {
        //Перенаправляем
       if (src != null)
       {
           src.actionPerformed(evt);
       }
       
       evt.consume();
    }
}
